package com.foreknow.OOP;

public class OOPDemo1 {
    String name = "tom";
    int age;
    String schoole = "hello";

    public void eat(){
        System.out.println("eat");
    }
    public void sleep(){
        System.out.println("sleep");
    }
    public void study(){
        System.out.println("study");
    }

    public static void main(String[] args) {
        OOPDemo1 p = new OOPDemo1();
        p.age = 16;
        p.name = "hello";
        p.schoole = "neu";

        OOPDemo1 p1 = new OOPDemo1();
        p1.age = 21;
        p1.name = "word";
        p1.schoole = "neu2";

        Animal a = new Animal();
        a.age = 16;

    }


}
